package org.luxor.commons.schedule.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.luxor.commons.schedule.entity.ScheduleJobLogEntity;

import java.util.Map;

/**
 * 调度记录
 *
 * @author Mr.yan @date 2020/2/17
 */
public interface IScheduleJobLogService {

    /**
     * 分页查询
     *
     * @param page   分页对象
     * @param search 查询条件
     * @return 分页结果
     */
    IPage<ScheduleJobLogEntity> page(IPage<ScheduleJobLogEntity> page, Map search);

    /**
     * 任务执行记录
     *
     * @param scheduleJobLog 记录日志
     */
    boolean saveLog(ScheduleJobLogEntity scheduleJobLog);


}
